<template>
	<view>
		<u-cell-group>
			<view v-for="h in houses">
				<u-cell :title="'楼栋：'+h.building.buildingName"></u-cell>
				<u-cell :title="'单元：'+h.building.buildingUnit"></u-cell>
				<u-cell :title="'面积：'+h.houseArea"></u-cell>
				<u-cell :title="'房号：'+h.houseNo"></u-cell>
				<u-cell :title="'备注：'+h.houseRemark"></u-cell>
				<u-divider></u-divider>
			</view>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				houses: []
			}
		},
		methods: {

		},
		onLoad() {
			let that = this;
			uni.request({
				url: "/user/getHouseByUserId",
				success(res) {
					console.log(res.data)
					if (res.data.code == 200) {
						that.houses = res.data.data
					}
				}
			})
		}
	}
</script>

<style>

</style>